Skip to content

feat(chatbot): Implement Kaapi Agentic Flow - #293

Open
Ayush8923 wants to merge 8 commits into
mainfrom
feat/kaapi-chatbot-flow
Open

Ayush8923 wants to merge 8 commits into
mainfrom
feat/kaapi-chatbot-flow

Conversation

@Ayush8923

@Ayush8923 Ayush8923 commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

Issue

Closes ProjectTech4DevAI/kaapi-backend#1278

Summary

Adds a Chatbot feature to Kaapi Konsole: design a chatbot on a visual canvas, save it, and test it live in a full-page chat.

Chatbot builder (/chatbot)

  • New Chatbot tab in the sidebar, shown only to users who have the CHATBOT feature enabled. Opening the URL directly without the feature redirects to home.
  • Visual canvas showing the flow Input → Chatbot step → Output.
  • The chatbot step is edited directly on the canvas:
    • Name of the chatbot (defaults to "Untitled Chatbot")
    • Configuration + version, picked from the existing saved configs
    • Prompt (goal and the fields to collect), with an expand button for a larger editor
  • Save and Discard changes buttons stay disabled until something is edited.
  • Save creates a new chatbot session using the current prompt and config.
  • After the first save, the chatbot's reference ID is shown on the step.
  • On reload, after logging back in, or in a new browser, the last saved chatbot (name, config, prompt) is restored automatically.

Testing the chatbot (/chatbot/chat)

  • A Play button icon on the canvas opens the chat in a new tab. It asks you to save first if there are unsaved changes.
  • Full-page chat with the sidebar and a breadcrumb: Chatbot › name › session ID.
  • Start chat: the bot sends the first message (greeting). Typing is disabled until it does.
  • Bot replies arrive live (delivered by webhook), with a typing indicator while the bot is working.
  • A status badge shows the session's progress: In progress / Complete / Abandoned / Closed.
  • The ↻ Restart button starts a fresh session with the saved flow.
  • If a session was replaced by a newer one, typing is disabled and a notice suggests restarting.
  • The chat tab follows a new Save made on the canvas tab automatically.
  • On logout, all chatbot data (session, saved flow, chat) is cleared so it can't leak to the next user on the same browser.

Checklist

Before submitting a pull request, please ensure that you mark these task.

  • Ran npm run dev and npm run build in the repository root and test.
  • If you've fixed a bug or added code that is tested

@Ayush8923 Ayush8923 self-assigned this Oct 19, 2026
@github-actions github-actions Bot changed the title feat: Kaapi Agentic Chatbot Flow feat(chatbot): Implement Kaapi Agentic Flow Oct 19, 2026
@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one): 1
  • ready-for-review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chabot: Server-side chatbot state management

1 participant